package com.keku.kplay.controller.pc;

import com.keku.kplay.utils.IMoocJSONResult;
import com.keku.kplay.utils.JWTUtils;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 小良
 * @version 1.0
 * @date 2021/4/7 10:21
 */
@RestController
@RequestMapping("/pc/SignUp")
public class SignUpController {

    @PostMapping("/register")
    public IMoocJSONResult register(){
        String token = JWTUtils.createToken("可酷", 7 * 24 * 60 * 60 * 1000);
        return IMoocJSONResult.ok(token);
    }


}
